package com.etc.entity.annotation;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

@Component(value = "usersDao")
public class UsersDao {

	private List<Users> list = new ArrayList();

	public List<Users> getList() {
		return list;
	}

	public void setList(List<Users> list) {
		this.list = list;
	}

	private Users u;

	public Users getU() {
		return u;
	}

	@Resource(name = "u")
	// @Autowired
	public void setU(Users u) {
		this.u = u;
	}

	public void add() {
		list.add(u);
	}

}
